package net.wangds.auth.user.repo.rdbms;

import net.wangds.auth.module.AbstractAccountRef;
import net.wangds.auth.user.entity.AndroidUserEntity;
import net.wangds.jpa.repository.RemovableRepo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

@NoRepositoryBean
public interface AbstractAccountRefRepo<T extends AbstractAccountRef>  extends RemovableRepo<T> {

    List<AndroidUserEntity> findByAccountId(String accountId);

    Page<AndroidUserEntity> findByAccountId(String accountId, Pageable page);
    
}
